<template>
    <view class="save-icons" @click="toggleLike">
        <uni-icons :color="isLiked ? '#ff6600' : '#ccc'" type="heart-filled" size="20"></uni-icons>
    </view>
</template>

<script>
    export default {
        name: "SaveLikes",
        
        data() {
            return {
                isLiked: false,  // 状态：是否已点赞
            };
        },
        
        methods: {
            // 切换点赞状态
            toggleLike() {
                this.isLiked = !this.isLiked;
            }
        }
    }
</script>

<style scoped>
    .save-icons {
        cursor: pointer;
    }
</style>
